package com.zmn.oms.business.interfaces.conf.attachment;

import com.zmn.oms.common.exception.OmsBaseException;
import com.zmn.oms.model.entity.conf.attachment.ConfOrderAttachmentCategory;
import com.zmn.oms.model.entity.conf.attachment.ConfOrderAttachmentCategoryQuery;

import com.zmn.oms.model.vo.conf.attachment.ConfOrderAttachmentCategoryVO;


import java.util.List;

/**
 * 类描述：工单附件类型
 *
 * @author ligang
 * @date 2021/09/25 16:51
 */
public interface ConfOrderAttachmentCategoryBService {

    /**
     * 查询配置
     *
     * @param query
     * @return
     */
    List<ConfOrderAttachmentCategoryVO> listPageByQuery(ConfOrderAttachmentCategoryQuery query);

    /**
     * 修改
     *
     * @param category
     */
    void modifyCategoryById(ConfOrderAttachmentCategory category) throws OmsBaseException;

    /**
     * 修改状态
     *
     * @param category
     */
    void modifyCategoryStatusById(ConfOrderAttachmentCategory category) throws OmsBaseException;

    /**
     * 修改sort
     *
     * @param category
     */
    void modifyCategorySortById(ConfOrderAttachmentCategory category);

    /**
     * 新增
     *
     * @param category
     */
    Integer addCategory(ConfOrderAttachmentCategory category) throws OmsBaseException;

    /**
     * 批量修改状态
     *
     * @param conf
     * @param categIdList
     * @return
     */
    Integer batchModifyCategoryStatus(ConfOrderAttachmentCategory conf, List<String> categIdList);

}
